package ee.propaganda.gparrot.client.app;


import ee.propaganda.gparrot.client.event.ServicesDataUpdatedEvent;
import ee.propaganda.gparrot.client.model.Data;
import ee.propaganda.gparrot.client.presenter.ServicesPresenter;


public class WebApplication{

	private final AppServices appServices;

	public WebApplication(AppServices appServicesIn){
		appServices = appServicesIn;
		//Register data event handlers for app-wide events
		appServices.getEventBus().addHandler(ServicesDataUpdatedEvent.TYPE, new ServicesPresenter(appServices));	
		Data.getInstance().init();
		
		
	}
}
